package writer;

import java.util.List;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

import modelo.Negociacao;

public class EscritorXML {
	
	public void escreveXML(List<Negociacao> negociacoes){
		XStream stream = new XStream(new DomDriver());
		for (Negociacao negociacao : negociacoes) {
			System.out.println(stream.toXML(negociacao));
		}
	}
	
}
